package baseObjectDecorator;
import baseObject.IBall;
import baseObject.RectObj;

public abstract class BallDecorator extends RectObjDecorator implements IBall{
	private IBall delegate;

	public BallDecorator(IBall delegate){
		super((RectObj) delegate);
		this.delegate = delegate;
	}

	public void setDirection(int deltaX,int deltaY){
		this.delegate.setDirection(deltaX, deltaY);
	}

	public void setSpeed(int speed){		
		this.delegate.setSpeed(speed);		
	}

	public void invertDirection(boolean inX,boolean inY){
		this.delegate.invertDirection(inX, inY);
	}

	public void move(){
		this.delegate.move();
	}

	public int getDeltaX() {
		return this.delegate.getDeltaX();
	}

	public int getDeltaY() {
		return this.delegate.getDeltaY();
	}

	public int getSpeed() {
		return this.delegate.getSpeed();
	}
}
